
  // 获取当前可视范围的高度
  export const getClientHeight=()=> {
    let clientHeight = 0;
    const container = document.querySelector('.feeds-container');
    if (container) {
      clientHeight = container.clientHeight;
    }
    return clientHeight;
  }

  // 获取文档完整的高度
 export const getScrollHeight=()=> {
    const container = document.querySelector('.feeds-container');
    return container ? container.scrollHeight : 0;
  }

  // 获取当前滚动条的位置
  export const getScrollTops=()=> {
    let scrollTop = 0;
    const container = document.querySelector('.feeds-container');
    if (container) {
      scrollTop = container.scrollTop;
    }
    return scrollTop;
  }

